<%include("/common/list-top.html",{title:"运输方式",css:[ctxPath+"/css/transport.css"]}){}
%>

<div class="container-fluid">
    <div class="page-head-nav">
        <div class="row">
            <div class="col-xs-11">
                <ol class="breadcrumb">
		            <li><a href="${ctxPath}"><i class="icon icon-home"></i>工作台</a></li>
					<li>基础数据管理</li>
					<li><a href="${ctxPath}/transport">运输方式</a></li>
				</ol>
			</div>
	<div class="col-xs-1">
		<a class="btn btn-link addTransport" href="#">新增</a>
	</div>
        </div>
    </div>


<div class="row">
	<!--运输方式数据表格  -->
	<div class="col-xs-12">
		<div class="row listui" id="mainUI">
			<div class="col-xs-12 ">
				<#listTable url="/bartalks/transport"   
				fields="transport_code,编码,sort,query|transport_Chinese_name,中文名称,sort,query|transport_English_name,英文名称,no-sort,query|description,描述/说明,no-sort,query|create_time,创建时间,13%,no-sort,query" />
			</div>
		</div>
	</div>
</div> 

<!-- 新增 -->
<div class="modal fade" id="addWindow" >
	<div class="modal-dialog" style="width: 500px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">×</span><span class="sr-only">关闭</span>
				</button>
				<h4 class="modal-title">添加运输方式</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" id="addForm">
					<div class="row">
					<div class="col-xs-2">
						<label>编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码<span class="color_red"> *</span></label></div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="transport_code"
								name="transportCode" maxlength="20" placeholder="编码" readonly="readonly">
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>中文名称<span class="color_red"> *</span></label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="transport_Chinese_name" name="transportChineseName" maxlength="100" placeholder="中文名称">
							<span class="sp color_red">*只允许输入中国汉字<span>
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>英文名称<span class="color_red"> *</span></label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="transport_English_name" name="transportEnglishName" maxlength="100" placeholder="英文名称">
							<span class="sp color_red">*只允许输入英文字母<span>
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>描述/说明</label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="description" name="description" maxlength="500" placeholder="描述/说明">
						</div>
					</div>
					<div class="clearfix"></div>
				</form>
			</div>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			<button type="button" class="btn btn-primary" id="add">保存</button>
		</div>
	</div>
</div>


<!-- 编辑 -->
<div class="modal fade" id="editWindow">
	<div class="modal-dialog" style="width: 500px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">×</span><span class="sr-only">关闭</span>
				</button>
				<h4 class="modal-title">编辑运输方式</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" id="editForm">
				<div class="row">
					<div class="col-xs-2">
						<label>编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码<span class="color_red"> *</span></label></div>
						<div class="col-xs-6">
							<input type="hidden" id="id" name="id">
							<input type="text" class="form-control" id="transportCode"
								name="transportCode" maxlength="20" placeholder="编码" readonly="readonly">
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>中文名称<span class="color_red"> *</span></label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="transportChineseName" name="transportChineseName" maxlength="20" placeholder="中文名称">
							<span class="sp color_red" >*只允许输入中国汉字</span>
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>英文名称<span class="color_red"> *</span></label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="transportEnglishName" name="transportEnglishName" maxlength="20" placeholder="英文名称">
							<span class="sp color_red">*只允许输入英文字母</span>
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-xs-2">
							<label>描述/说明</label>
						</div>
						<div class="col-xs-6">
							<input type="text" class="form-control" id="description" name="description" maxlength="500" placeholder="描述/说明">
						</div>
					</div>
					<div class="clearfix"></div>
				</form>
			</div>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			<button type="button" class="btn btn-primary" id="edit">保存</button>
		</div>
	</div>
</div>


</div>
<%include("/common/list-bottom.html",{js:[ctxPath+"/ztree/js/jquery.ztree.all.min.js",ctxPath+"/js/basics/transport-list.js"]}){} %>

